<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改页面</title>
    
	

  </head>
  
  <body style='background-color:#66FFFF'>
  <%    String i=request.getParameter("id");
        int n=Integer.parseInt(i);//i转为int 用于计算
        n++;
        String id=Integer.toString(n);
        response.setContentType("text/html;charset=gbk");
		request.setCharacterEncoding("gbk");
		response.setCharacterEncoding("gbk"); %>
  (￣▽￣)／        q^__^p <br><br>
    <font color='blue'>请修改：</font>
       <form action="servlet/editservlet" method="post"">
   <% out.println("现在修改的是第：<input type='text' name = 'i' value='" +id+"' size='1'/> 个数据<br/><br/>"); %>
		课&nbsp程&nbsp名：<input type="text" name = "name"><br/><br/>
		开课&nbsp学期：<input type="text" name = "term"><br/><br/>
		课程&nbsp学分：<input type="text" name = "credit"><br/><br/>
		 <input type='submit' value='修改'><br>
  </body>
</html>
